<include file="Public:header" />

    <table class="table table-bordered table-hover definewidth m10">
        <tr>
            <td width="10%" class="tableleft">维保纪录编号</td>
            <td>{$equ_repair_records.repair_record_no}</td>
        </tr>

        <tr>
            <td class="tableleft">设备编号</td>
            <td>{$equ_repair_records.equnumber}({$equ_repair_records.equname})</td>
        </tr>
        <tr>
            <td class="tableleft">维保员工</td>
            <td>{$equ_repair_records.user_id}({$equ_repair_records.nickname|default=$equ_repair_records.name})</td>
        </tr>
        <tr>
            <td class="tableleft">合同编号</td>
            <td>{$equ_repair_records.contract_id}</td>
        </tr>
        <tr>
            <td class="tableleft">企业名称</td>
            <td>{$equ_repair_records.com_name}({$equ_repair_records.company_id})</td>
        </tr>
        <tr>
            <td class="tableleft">维修时间</td>
            <td>
                {$equ_repair_records.repair_time|date='Y-m-d',###}
            </td>
        </tr>
        <tr>
            <td class="tableleft">企业评价</td>
            <td>
                {$equ_repair_records.score|default="暂无评价"}
            </td>
        </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="button" class="btn btn-primary" type="button" id="edit-equ">修改</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
            </td>
        </tr>
    </table>

<script>
    $(function () {
        $('#backid').click(function(){
            window.location.href="{:U('Home/EquRepairRecords/Index')}";
        });
        $('#edit-equ').click(function(){
            window.location.href="{:U('Home/EquRepairRecords/edit',array('equid'=>$equ_repair_records['equ_repair_records_id']))}";
        });

    });
</script>

<include file="Public:footer" />